/*
 * CppDocument.java  0.4.0 / Oct 23, 2010
 *
 * Copyright (c) 2010 - 2011, cute4j.com and contributors.
 *
 * This software is licensed under the LGPL version 2.1 license.
 * A copy of this license is included in the file LICENSE-LGPL.txt.
 */
package com.cute4j.swingx.text.code;

import com.cute4j.swing.text.PlainDocument;

/**
 * C/C++ Document.
 *
 * @author Slobodan Vrkacevic
 * @version 0.4.0
 */
public class CppDocument extends PlainDocument {

// Public Constructors. --------------------------------------------------------

  /**
   * Constructs new CppDocument object.
   */
  public CppDocument() {
    this(null);
  }

  /**
   * Constructs new CppDocument object.
   *
   * @param text the text
   */
  public CppDocument(String text) {
    super(text);
    setHighlighter(new CppHighlighter());
  }

}
